const { LOGIN_SUCCESS } = require("../actions/action-types")

const initState = {
  a:'',
  b:'',
  
}
const reducer = (state=initState,{type,payload})=>{
  switch(type){
    case LOGIN_SUCCESS:
      return {
        ...state,...payload
      }
    default:
      return state
  }

}
export default reducer